#!/bin/sh

./tcclimDownloadCRUTS2.py
./tcclimDownloadTYNSC2.py

# Get precipitation from December 2002
# This is the confirmed datum for checking purposes from:
# http://www.cru.uea.ac.uk/~timm/grid/CRU_TS_2_1.html 
# Grid cell: row 286, col 363 from lower left origin = 90.0
./tcclimCruTS2.py -m pre  12,2002  12,2002

# Get mean precipitation from HadCM3 A2 from July 1971 to July 1991
./tcclimCruTS2.py pre  07,1971  07,1991

# Get monthly grid files for precipitation for dates in a file
./tcclimCruTS2.py -m -d exampleDatesCruTS2.txt pre

# Get precipitation from HadCM3 A2 for July 2081
# This is the worked example from:
# http://www.cru.uea.ac.uk/cru/data/hrg/timm/grid/algorithm.html
# Grid cell: row 286, col 363 from lower left origin = 50.5
./tcclimTynSC2.py -m hadcm3 a2  pre  07,2081  07,2081

# Get mean precipitation from HadCM3 A2 from July 2071 to July 2091
./tcclimTynSC2.py hadcm3 a2  pre  07,2071  07,2091

# Get monthly grid files for HadCM3 A2 for dates in a file
./tcclimTynSC2.py -m -d exampleDatesTynSC2.txt hadcm3 a2  pre


